package thread;

public class MyThreadTest {
    public static void main(String[] args) {
        MyThread myThread = new MyThread();//创建线程
//        myThread.name = "线程一";
        myThread.setName("线程一");
        myThread.start();//线程就绪
//        myThread.run();
        MyThread myThread1 = new MyThread();//创建线程
        myThread1.setName("线程二");
        myThread1.start();//线程就绪
        MyThread myThread2 = new MyThread();//创建线程
        myThread2.setName("线程三");
        myThread2.start();//线程就绪
        myThread2.setPriority(10);//只是可能优先  并不是说一定先执行
    }
}
